#!/bin/sh
cp ./imlib2.c.in ./imlib2.c

for I in `find ./src -name "api.c" -print`; do
  cat $I >> ./imlib2.c
done

#for I in `find ./src/lib -name "*.c" -print`; do
#  cat $I >> ./imlib2.c
#done
rm -rf ./doc/html ./doc/latex ./doc/man
doxygen
cp doc/img/* doc/html/
rm -f imlib2_docs.tar imlib2_docs.tar.gz
tar -cvf imlib2_docs.tar doc/html doc/man doc/latex
gzip -9 imlib2_docs.tar
exit 0
